/*
 * @Description:
 * @Autor: zhzj
 * @Date: 2020-12-21 14:58:14
 * @LastEditors: zhzj
 * @LastEditTime: 2020-12-21 14:58:14
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取表格数据
export const getShipmentData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partshipment/selectlist`, { params });
// 获取明细数据
export const getDetailData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partshipment/getdetailbyid`, { params });
// 保存
export const postSave = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partshipment/receive`, params);

//修改明细备注
export const updateRemark = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partshipment/updateRemark`, params);
//导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

// 理赔退货过账查询
export const getPartTransferQuery = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partshipment/getPartTransferQuery`, { params});
// 理赔退货过账明细查询
export const getPartTransferDetail = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partshipment/getPartTransferDetail/${id}`, {});

